<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<%@ include file="/common/plateform/include/common-base.jsp"%>
	<title>管理控制台</title>
	<style>
		.jbst h1 {
			font-size: 30px;
			color: #ff9f00;
			letter-spacing: -2px;
			line-height: 1;
			margin: 0 0 10px;
		}
	</style>
</head>
<body class="hold-transition ${sysColor} sidebar-mini">
<div class="wrapper">
	<!-- top start -->
	<%@include file="/common/plateform/top.jsp" %>
	<!-- top end -->


	<!-- left start -->
	<%@include file="/common/plateform/left-project.jsp" %>
	<!-- left end-->


	<div class="content-wrapper">
		<div class="row">
			<!-- Main content -->
			<section class="container">
				<!-- Small boxes (Stat box) -->
				<div class="row" style="margin-top:20px;">
					<div class="col-lg-12">
						<div class="col-lg-10 p10">
							<!-- small box -->
							<h3 class="fx2">管理控制台 - ${param.sysEname}</h3>
							<h5 class="mt10 hidden">${param.sysCname} [${param.sysEname}]</h5>
						</div>
					</div>
				</div>

			</section>

			<section class="container">
				<div class="content">
					<div class="col-sm-11">
						<div class="panel panel-default">
							<div class="page-header f16">&nbsp; <i class="fa fa-cog"></i> 服务监控</div>
							<div class="panel-body">
								<div class="form-group">临时测试版，未开发完成！</div>
								<div class="form-group col-lg-4">
									输入指定目录下JAR全路径：
								</div>
								<div class="form-group col-lg-8">
									<input type="text" class="form-control" id="jarName" name="jarName" value="E:\upload\project\test-server\target\test-server-3.0.1-SNAPSHOT.jar"/>
								</div>
								<div class="form-group">
									<button class="btn btn-danger btn-lg" onclick="startServerProjet()"> 启动 </button>
								</div>
							</div>
						</div>
					</div>
				</div>
			</section>



		</div>
	</div>

	<!-- foot start -->
	<%@include file="/common/plateform/foot.jsp" %>
	<!-- foot start -->

</div>

</body>
</html>

<script>
    var clickMenu= 'plateForm-index';
    var defSysEname = strUtil.doNull("${param.sysEname}","");

    function startServerProjet() {
        var jarName =  $("#jarName").val();
        $.ajax({ type:'post', url:"${ctx}/info/startServerProjet",dataType:'json',async:false,
            data:{"jarName":jarName},
            success: function(myData){
                console.log(myData);
                layer.alert(myData.msg);
            }
        });
    }

</script>


